package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class CountGetRequest extends BaseTokenRequest {

    public static final String PATH = BaseRequest.PATH + "api/get_diaries_total";

    private int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        CountGetRequestBody body = new CountGetRequestBody();
        body.setPhone(getPhone());
        body.setToken(getToken());
        body.setId(id);
        return body;
    }

    private class CountGetRequestBody extends BaseTokenRequestBody {

        @SerializedName("BabyID")
        private int id;

        private CountGetRequestBody() {
            setSv(BaseRequestConfig.SV_COUNT_GET);
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

    }

}
